const MP = require('./mp')
const MiniProgram = require('./mini-program')
const WechatPay = require('./wechat-pay')

class WechatApi {
  constructor(config = {}) {
    this.mp = new MP(config)
    this.miniProgram = new MiniProgram(config.miniProgram)
    this.pay = new WechatPay(config)
  }
}

module.exports = WechatApi
